<template>
  <div class="form_3">
    <el-form :model="form" status-icon :rules="rules" ref="ruleForm" label-width="60px">
      <el-form-item label="操作" prop="is_action">
        <el-radio-group v-model="form.is_action" disabled>
          <el-radio label="true">启用</el-radio>
          <el-radio label="false">禁用</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="头像" prop="src">
<!--        <el-input v-model="form.src"></el-input>-->
        <img style="width: 40px" :src="form.src"/>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import {ref} from "vue";
import {ElMessage} from "element-plus";
let name = 'Form3'
let form = ref({
  is_action: 'true',
  src: ''
})
let ruleForm = ref(null)
let rules = ref({
})
let validateCurrent = async () => {
  return new Promise((resolve, reject) => {
    ruleForm.value.validate((valid) => {
      if (valid) resolve()
    })
  })
}


let show = ()=>{
}
defineExpose({
  form,
  name,
  show,
  validateCurrent
})

</script>

<style scoped>
.form_3 {
  width: 450px;
}
</style>